package com.asion.vmovie.fragment;


import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.asion.vmovie.R;
import com.asion.vmovie.utils.BlurImage;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * A simple {@link Fragment} subclass.
 */
public class MineFragment extends Fragment {

    @BindView(R.id.login_bg)
    ImageView loginBg;

    public static MineFragment newInstance() {
        return new MineFragment();
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_mine, container, false);
        ButterKnife.bind(this, view);

        Bitmap blurBitmap = BlurImage.createBlurBitmap(BitmapFactory.decodeResource(getResources(), R.mipmap.login_bg));
        loginBg.setImageBitmap(blurBitmap);

        return view;
    }

}
